package com.ybkj.o2o.zhuanxian.service;

import com.ybkj.o2o.zhuanxian.entity.Car;

import java.util.List;

public interface CarService {

  Car create(Car car);

  Car findByEmploy(Long employId, String appKey);

  int update(Car car);

  Car findOne(Long carId, String appKey);

  int deleteByIdAndAppKey(Long carId, String appKey);

  List<Car> findByParam(Long lineId, String lineName, Long companyId, String companyName,
      String carName, String carNumber, Integer[] status, Long employId, String employName,
      Integer limit, Integer rows, String appKey);

  /** hgg */
  List<Car> findCarListByParams(String lineName,Long companyId, String companyName, String carNumber, Integer[] status, Long employId, String employName, Integer limit, Integer rows, String appKey);

  Long countParam(Long lineId, String lineName, Long companyId, String companyName, String carName,
      String carNumber, Integer[] status, Long employId, String employName, String appKey);

  Long countParams(Long lineId, String lineName, Long companyId, String companyName, String carName,
                  String carNumber, Integer[] status, Long employId, String employName, String appKey);

  int updateCarLineToNull(Long lineId, String appKey);

  List<Car> findBycarNumber(String carNumber, String appKey);

  List<Car> findByIds(List<Long> ids);

  Car findByNumber(String carNumber, String appKey);

  Car queryCarByNumber(String carNumber, String appKey);

int updateEmployIdToNull(Car car);

int updateEmployIdToNullById(Car car);

}
